/**
 * Created by hda on 2017/5/20.
 */
define(['ks-spa'], function (ksspa) {
    var model = {};
    model.init = function (m) {

        ksspa.start({
            view: m.el,
            errorTemplateId: '#error', // 可选
            router: {
                'index': {view: '/wechat.php/index/user/wc_order_submit'},
                'address-select': {view: '/wechat.php/index/user.address/select',controller:'user/address/select'},
                'address-post': {view: '/wechat.php/index/user.address/post',controller:'user/address/post'},
                'default': 'index' //默认路由
            }
        });
    }
    return model;
});